import _http from '@/utils/http'

export default {
  incomeAll(params, loading) {
    return _http('post', {
      url: "/eas/mobile/income/load/all",
      apiName: '佣金总览'
    }, params, loading)
  },

  incomeUnfreezen(params, loading) {
    return _http('post', {
      url: "/eas/mobile/income/future/unfreezen",
      apiName: '解冻期望查询'
    }, params, loading)
  },

  incomeList(params, loading) {
    return _http('post', {
      url: "/eas/mobile/income/income/order/list",
      apiName: '佣金订单列表'
    }, params, loading)
  },

  incomeListStatics(params, loading) {
    return _http('post', {
      url: "/eas/mobile/income/income/order/list/statics",
      apiName: '佣金订单列表统计'
    }, params, loading)
  },

  incomeWithdrawList(params, loading) {
    return _http('post', {
      url: "/eas/mobile/income/withdraw/order/list",
      apiName: '提现订单列表'
    }, params, loading)
  },

  incomeWithdrawStatics(params, loading) {
    return _http('post', {
      url: "/eas/mobile/income/withdraw/order/list/statics",
      apiName: '提现订单列表统计'
    }, params, loading)
  },

  incomeWithdrawDetail(params, loading) {
    return _http('post', {
      url: "/eas/mobile/income/withdraw/order/detail",
      apiName: '提现订单详情'
    }, params, loading)
  },

  withdrawInfo(params, loading) {
    return _http('post', {
      url: "/eas/mobile/withdraw/leftfee/and/bindInfo",
      apiName: '获取可提现金额和提现账号信息'
    }, params, loading)
  },

  alipayBind(params, loading) {
    return _http('post', {
      url: "/eas/mobile/withdraw/bind/alipay",
      apiName: '支付宝账号绑定'
    }, params, loading)
  },

  alipayUnbind(params, loading) {
    return _http('post', {
      url: "/eas/mobile/withdraw/unbind/alipay",
      apiName: '支付宝解绑'
    }, params, loading)
  },

  bankBind(params, loading) {
    return _http('post', {
      url: "/eas/mobile/withdraw/bind/bank",
      apiName: '银行卡账号绑定'
    }, params, loading)
  },

  bankUnbind(params, loading) {
    return _http('post', {
      url: "/eas/mobile/withdraw/unbind/bank",
      apiName: '银行卡解绑'
    }, params, loading)
  },

  sendcode(params, loading) {
    return _http('post', {
      url: "/eas/mobile/withdraw/sendcode",
      apiName: '获取提现验证码'
    }, params, loading)
  },

  withdrawSubmit(params, loading) {
    return _http('post', {
      url: "/eas/mobile/withdraw/submit",
      apiName: '提交提现申请'
    }, params, loading)
  },
}



